﻿import com.dinmax.isolution.*

class BlindEditorGUI
extends DeviceEditorGUI {
	
	private var device:Blind;
	private var listener:WindowDeviceGUI;
	
	
	function BlindEditorGUI(){
		super();
		this["mcState"]._visible = false;
		return;
	}
	
	public function getDevice():Blind{
		return this.device;
	}
	public function setDevice(newDevice:Blind):Void{
		super.setDevice(newDevice);
		return;
	}
		
	public function refresh():Void {
		super.refresh();
		this["mcState"]._visible = true;			
		this["mcState"].nPos = this.device.getValue();
		return;
	}
	
	public function registerChild(mc:MovieClip):Void {
		if(mc == this["mcState"]){
			mc.setPos(this.device.getValue());	
		}
	}
	
}